<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Document</title>
<script type="text/javascript">
function changeColor() {
	document.getElementById('container').style.backgroundColor = 'red';
}

changeColor();
</script>
</head>
<body>
	<div id="container">div 엘리먼트</div>
</body>
</html>
